import cn.bdqn.dao.StudentDao;
import cn.bdqn.entity.Student;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Main {

    public void buyTickets(int num,double money) throws payException{
        if(num<1){
            throw new payException("购买的票数不能小于1！");
        }
        if(money-num*50<0){
            throw new payException("支付金额不够！");
        }

    }

    public static void main(String[] args) {

        Student s1101001 = new StudentDao().login("S1101001", "228996245");
        System.out.println(s1101001);
    }
}
